package com.example.wilson.lesson13;


import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.widget.Toast;

public class NotifyService extends Service{
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    public void onCreate(){
        MainActivity app  = MainActivity.getApp();
        app.btEvent("来自 NotifyService");
        Toast.makeText(this, "这是系统自带的服务呀", Toast.LENGTH_LONG).show();
    }
}
